package org.rain.core.dict;

import java.util.Collection;
import java.util.Map;

/**
 * created by yangtong on 2025/4/7 22:52:56
 * <br/>
 * 字典服务
 */
public interface IDictParse {

    /**
     * 解析clazz类中标有字典注解的字段信息<br/>
     * kv: name -> user,userName,realName
     */
    <T> Map<String, String> parseClassDict(Class<T> clazz);

    /**
     * 翻译字典
     */
    <T> Map<String, String> translate(Map<String, String> dictFields, Collection<T> data);

    /**
     * 翻译字典
     */
    <T> Map<String, String> translate(Map<String, String> dictFields, T data);

}
